/**
 * User:langchen
 * Date:2022-08-04
 * Time:9:44
 */
public class STudent {
    public String name;
    public String sex;
    String falut;//默认是default权限

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int age;
    public void set(STudent this,String name,String sex,int age){
        this.age = age;
        this.name = name;
        this.sex = sex;
    }
    public void print(STudent this){
        System.out.println(this.sex);
        System.out.println(this.age);
        System.out.println(this.name);
    }
    public static void main(String[] args) {
        STudent s = new STudent();
        s.sex  = "男";
        s.name = "张三";
        s.age = 18;
    }
}
